home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3082 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  835 b 

  1. Path: crl.crl.com!not-for-mail
  2. From: bobfry@crl.com (Robert Fry)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: (void(far *)()) 0
  5. Date: 25 Jan 1996 15:18:04 -0800
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4e933c$fo4@crl.crl.com>
  8. References: <341998718.10858110@magnet.at>
  9. NNTP-Posting-Host: crl.com
  10.  
  11. m.imlinger@magnet.at (markus imlinger) writes:
  12.  
  13. >In a C-Programm I saw the instruction:
  14. >.... = (void(far *)()) 0; 
  15.  
  16. >It seems that (void(far *)()) is a cast-
  17. >operator.
  18.  
  19. >If so this instruction casts 0 to a far-
  20. >pointer to a function which returns nothing.
  21.  
  22. This is correct.
  23.  
  24. >Now I want to know if my assumption is right and
  25. >in case it is, what does this mean for 0 ?
  26.  
  27. 0 is a synonym for the NULL pointer, when used in a pointer context. So 
  28. the line you're referring to assigns a NULL function pointer.
  29.  
  30. Hope that helps!
  31.    Bob
  32.